package com.student.xujiang.myallstudent.glide;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

import com.student.xujiang.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class GlideMainActivity extends AppCompatActivity {

    @BindView(R.id.bt_glide_base)
    Button btGlideBase;
    @BindView(R.id.bt_glide_recyclerview)
    Button btGlideRecyclerview;
    @BindView(R.id.bt_glide_tranfromations)
    Button btGlideTranfromations;
    @BindView(R.id.activity_glide_main)
    LinearLayout activityGlideMain;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_glide_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.bt_glide_base, R.id.bt_glide_recyclerview, R.id.bt_glide_tranfromations})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.bt_glide_base:
                Intent intent = new Intent(GlideMainActivity.this,GlideBaseActivity.class);
                startActivity(intent);
                break;
            case R.id.bt_glide_recyclerview:
                Intent intent1 = new Intent(GlideMainActivity.this,GlideRecyclerViewActivity.class);
                startActivity(intent1);
                break;
            case R.id.bt_glide_tranfromations:
                Intent intent2 = new Intent(GlideMainActivity.this,GlideTranfromationsActivity.class);
                startActivity(intent2);
                break;
        }
    }
}
